package com.yuyue.springFramework.note01.entity;

import java.util.*;

/**
 * 创建含有复杂成员变量的类
 */
public class CollectionsEntity {
    private Object[] objArr;
    private List objList;
    private Map objMap;
    private Set objSet;
    private Properties property;

    //此处省略set、get和toString方法
    public Object[] getObjArr() {
        return objArr;
    }

    public void setObjArr(Object[] objArr) {
        this.objArr = objArr;
    }

    public List getObjList() {
        return objList;
    }

    public void setObjList(List objList) {
        this.objList = objList;
    }

    public Map getObjMap() {
        return objMap;
    }

    public void setObjMap(Map objMap) {
        this.objMap = objMap;
    }

    public Set getObjSet() {
        return objSet;
    }

    public void setObjSet(Set objSet) {
        this.objSet = objSet;
    }

    public Properties getProperty() {
        return property;
    }

    public void setProperty(Properties property) {
        this.property = property;
    }

    @Override
    public String toString() {
        return "CollectionsEntity{" +
                "objArr=" + Arrays.toString(objArr) +
                ", objList=" + objList +
                ", objMap=" + objMap +
                ", objSet=" + objSet +
                ", property=" + property +
                '}';
    }
}
